<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>角色管理</title>
    <span th:replace="common/link"></span>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <div th:replace="common/navbar::navBar"></div>
    <!--菜单回显-->
    <div th:replace="common/menu::menuBar"></div>
    <div class="content-wrapper">
        <section class="content-header">
            <h1>角色管理</h1>
        </section>
        <section class="content">
            <div class="box">
                <!--高级查询--->
                <form class="form-inline" id="searchForm" action="/role/list" method="get">
                    <input type="hidden" name="pageIndex" id="currentPage" value="1">
                    <a href="/role/save" class="btn btn-success btn-input" style="margin: 10px">
                        <span class="glyphicon glyphicon-plus"></span> 添加
                    </a>
                </form>
                <!--编写内容-->
                <div class="box-body table-responsive no-padding ">
                    <table class="table table-hover table-bordered">
                        <tr>
                            <th>编号</th>
                            <th>角色名称</th>
                            <th>角色编号</th>
                            <th>操作</th>
                        </tr>
                        <tr th:each="role:${page.records}">
                            <td th:text="${role.id} "></td>
                            <td th:text="${role.name}"></td>
                            <td th:text="${role.sn}"></td>
                            <td><a th:href="@{/role/update(roleid=${role.id})}" class="label xiugai"><span
                                    class="glyphicon glyphicon-edit"></span> 修改</a> <a
                                    onclick="{return confirm('删除该记录将不能恢复，确定删除吗？');};"
                                    th:href="@{/role/delete(roleid=${role.id})}" class="label shanchu"><span
                                    class="glyphicon glyphicon-remove"></span> 删除</a>
                            </td>
                        </tr>
                    </table>
                    <!--分页-->
                    <div th:replace="common/pagePlus::paginationPage"></div>
                </div>
            </div>
        </section>
    </div>
    <div th:replace="common/footer::footerPage"></div>
</div>
</body>
</html>